package com.kabu.hookamsstartactivity

import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Toast
import com.kabu.hookamsstartactivity.databinding.ActivityLoginBinding

class LoginActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val binding = ActivityLoginBinding.inflate(layoutInflater)
        setContentView(binding.root)
    }


    fun login(view:View){

        Thread.sleep(2000)
        Toast.makeText(this,"登录完成开始跳转", Toast.LENGTH_SHORT).show()
        Config.isLogin = true;
        val intent: Intent = getIntent().getParcelableExtra("real_intent")
        Log.d("lkx_debug", "LoginActivity intent=$intent")
        startActivity(intent)
        finish()
    }

}
